package com.cloudlead.commonData.query;

import static com.mysema.query.types.PathMetadataFactory.*;
import com.cloudlead.commonData.entity.EBaseFleet;


import com.mysema.query.types.path.*;

import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;

import com.mysema.query.sql.ColumnMetadata;
import java.sql.Types;

import com.mysema.query.sql.*;

import com.cloudlead.common.lang.annotation.Label;


/**
 * QBaseFleet is a Querydsl query type for EBaseFleet
 */
@Label("车队基本信息查询")
@Generated("com.cloudlead.utils.persistence.codegen.serializer.SimpleMetaDataSerializer")
public class QBaseFleet extends RelationalPathBase<EBaseFleet> {

    private static final long serialVersionUID = 234021492;

    public static final QBaseFleet baseFleet = new QBaseFleet("base_fleet");

    public class PrimaryKeys {

        public final PrimaryKey<EBaseFleet> primary = createPrimaryKey(id);

    }

    public class ForeignKeys {

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseCompany> baseFleetBaseCompany1Fk = createForeignKey(baseCompanyId, "id");

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseCar> _baseCarBaseFleetFk = createInvForeignKey(id, "base_fleet_id");

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseDriver> _baseDriverBaseFleet1Fk = createInvForeignKey(id, "base_fleet_id");

    }

    public final StringPath address = createString("address");

    public final StringPath baseCompanyId = createString("baseCompanyId");

    public final StringPath comments = createString("comments");

    public final StringPath company = createString("company");

    public final StringPath contactsName = createString("contactsName");

    public final StringPath flag = createString("flag");

    public final StringPath fleetName = createString("fleetName");

    public final StringPath fleetSort = createString("fleetSort");

    public final StringPath id = createString("id");

    public final StringPath mobile = createString("mobile");

    public final StringPath status = createString("status");

    public final PrimaryKeys pk = new PrimaryKeys();

    public final ForeignKeys fk = new ForeignKeys();

    public QBaseFleet(String variable) {
        super(EBaseFleet.class, forVariable(variable), "null", "base_fleet");
        addMetadata();
    }

    public QBaseFleet(String variable, String schema, String table) {
        super(EBaseFleet.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QBaseFleet(Path<? extends EBaseFleet> path) {
        super(path.getType(), path.getMetadata(), "null", "base_fleet");
        addMetadata();
    }

    public QBaseFleet(PathMetadata<?> metadata) {
        super(EBaseFleet.class, metadata, "null", "base_fleet");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(address, ColumnMetadata.named("address").withIndex(6).ofType(Types.VARCHAR).withSize(45));
        addMetadata(baseCompanyId, ColumnMetadata.named("base_company_id").withIndex(11).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(comments, ColumnMetadata.named("comments").withIndex(8).ofType(Types.VARCHAR).withSize(256));
        addMetadata(company, ColumnMetadata.named("company").withIndex(10).ofType(Types.VARCHAR).withSize(45));
        addMetadata(contactsName, ColumnMetadata.named("contactsName").withIndex(4).ofType(Types.VARCHAR).withSize(45));
        addMetadata(flag, ColumnMetadata.named("flag").withIndex(9).ofType(Types.VARCHAR).withSize(45));
        addMetadata(fleetName, ColumnMetadata.named("fleetName").withIndex(2).ofType(Types.VARCHAR).withSize(45));
        addMetadata(fleetSort, ColumnMetadata.named("fleetSort").withIndex(3).ofType(Types.VARCHAR).withSize(45));
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(mobile, ColumnMetadata.named("mobile").withIndex(5).ofType(Types.VARCHAR).withSize(45));
        addMetadata(status, ColumnMetadata.named("status").withIndex(7).ofType(Types.VARCHAR).withSize(45));
    }

}

